package com.tju.resource.tool.tool;

import org.springframework.mobile.device.Device;

/**
 * 公用工具类
 *
 * @Author CLS
 * @Date 2021/12/30 10:53
 */
public class PublicTools {

    public static String deviceMatch(Device device) {
        if (device.isMobile()) {
            return "Mobile";
        } else if (device.isTablet()) {
            return "Flatbed";
        } else if (device.isNormal()) {
            return "PC";
        } else {
            return "OtherEquipment";
        }
    }
}
